/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modulos.agenda.vista;

import vista.*;
import basedatos.OperacionesBD;
import javax.swing.JOptionPane;
import modulos.usuario.modelo.Usuario;
import modulos.agenda.modelo.Contacto;
import vista.modelo.OperacionesVarias;

/**
 *
 * @author Edulima
 */
public class iFrmContacto extends javax.swing.JInternalFrame {
    
    private Contacto mdfContacto;
    private Usuario usuario = new Usuario();
    private int tipoUsuario = -1;

    /**
     * Creates new form iFrmLstContacto
     */
    public iFrmContacto(int tipoUsuario) {
        initComponents();
        usuario = (Usuario) frmPrincipal.UsuarioLogueado.get(0)[1];
        OperacionesVarias.cerrarVentanaEscape(this);
        this.tipoUsuario = tipoUsuario;
    }
    
    public iFrmContacto(Contacto mdfcontacto, int tipoUsuario) {
        initComponents();
        usuario = (Usuario) frmPrincipal.UsuarioLogueado.get(0)[1];
        this.mdfContacto = mdfcontacto;
        setContacto(mdfcontacto);
        this.tipoUsuario = tipoUsuario;
    }
    
    private void setContacto(Contacto contacto) {
        txtNombre.setText(contacto.getNombre());
        txtApellido.setText(contacto.getApellido());
        txtEmpresa.setText(contacto.getEmpresa());
        txtTelefono.setText(contacto.getTelefono());
        txtCel.setText(contacto.getCelular());
        txtFax.setText(contacto.getFax());
        txtDireccion.setText(contacto.getDireccion());
        txtMail.setText(contacto.getMail());
        btnNuevo.setText("Cancelar");
        btnGuardar.setText("Actualizar");
    }
    
    private Contacto getContacto(Contacto contacto) {
        contacto.setNombre(txtNombre.getText());
        contacto.setApellido(txtApellido.getText());
        contacto.setEmpresa(txtEmpresa.getText());
        contacto.setTelefono(txtTelefono.getText());
        contacto.setCelular(txtCel.getText());
        contacto.setFax(txtFax.getText());
        contacto.setDireccion(txtDireccion.getText());
        contacto.setMail(txtMail.getText());
        if (tipoUsuario == iFrmAgenda.USUARIO_UNICO) {
            contacto.setUsuario(usuario);
        } else {
            contacto.setUsuario(null);
        }
        return contacto;
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        btnCerrar = new javax.swing.JButton();
        pnlAddContacto = new javax.swing.JPanel();
        lblDir = new javax.swing.JLabel();
        txtEmpresa = new javax.swing.JTextField();
        lblCel = new javax.swing.JLabel();
        txtTelefono = new javax.swing.JTextField();
        lblFax = new javax.swing.JLabel();
        txtCel = new javax.swing.JTextField();
        lblEmpresa = new javax.swing.JLabel();
        txtDireccion = new javax.swing.JTextField();
        lblTelefono = new javax.swing.JLabel();
        txtFax = new javax.swing.JTextField();
        lblNombres = new javax.swing.JLabel();
        txtMail = new javax.swing.JTextField();
        lblApellido = new javax.swing.JLabel();
        txtNombre = new javax.swing.JTextField();
        txtApellido = new javax.swing.JTextField();
        lblMail = new javax.swing.JLabel();
        btnGuardar = new javax.swing.JButton();
        btnNuevo = new javax.swing.JButton();
        lbltxtIdContacto = new javax.swing.JLabel();

        setClosable(true);
        setTitle("Contactos");
        setFrameIcon(new javax.swing.ImageIcon(getClass().getResource("/jpgs/agenda telefonica.png"))); // NOI18N
        setVisible(true);

        btnCerrar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jpgs/agt_home.png"))); // NOI18N
        btnCerrar.setText("Cerrar");
        btnCerrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCerrarActionPerformed(evt);
            }
        });

        pnlAddContacto.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));

        lblDir.setText("Direccion:");

        txtEmpresa.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txtEmpresaKeyTyped(evt);
            }
        });

        lblCel.setText("Celular:");

        txtTelefono.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txtTelefonoKeyTyped(evt);
            }
        });

        lblFax.setText("Fax:");

        txtCel.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txtCelKeyTyped(evt);
            }
        });

        lblEmpresa.setText("Empresa:");

        lblTelefono.setText("Telefono:");

        txtFax.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txtFaxKeyTyped(evt);
            }
        });

        lblNombres.setText("Nombres:");

        txtMail.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                txtMailFocusLost(evt);
            }
        });

        lblApellido.setText("Apellidos:");

        txtNombre.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
        txtNombre.setName("");
        txtNombre.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txtNombreKeyTyped(evt);
            }
        });

        txtApellido.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                txtApellidoKeyTyped(evt);
            }
        });

        lblMail.setText("Mail:");

        btnGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jpgs/filesave.png"))); // NOI18N
        btnGuardar.setText("Guardar");
        btnGuardar.setFocusable(false);
        btnGuardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnGuardarActionPerformed(evt);
            }
        });

        btnNuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jpgs/add.png"))); // NOI18N
        btnNuevo.setText("Nuevo");
        btnNuevo.setFocusable(false);
        btnNuevo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNuevoActionPerformed(evt);
            }
        });

        lbltxtIdContacto.setText(" ");

        javax.swing.GroupLayout pnlAddContactoLayout = new javax.swing.GroupLayout(pnlAddContacto);
        pnlAddContacto.setLayout(pnlAddContactoLayout);
        pnlAddContactoLayout.setHorizontalGroup(
            pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlAddContactoLayout.createSequentialGroup()
                .addGap(42, 42, 42)
                .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblNombres, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblApellido, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblEmpresa, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblTelefono, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblCel, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblFax, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblDir, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblMail, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(29, 29, 29)
                .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlAddContactoLayout.createSequentialGroup()
                        .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(lbltxtIdContacto, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlAddContactoLayout.createSequentialGroup()
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtApellido, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCel, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtFax, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtMail, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(44, 44, 44)
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(btnNuevo, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)
                            .addComponent(btnGuardar, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE))))
                .addGap(47, 47, 47))
        );
        pnlAddContactoLayout.setVerticalGroup(
            pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlAddContactoLayout.createSequentialGroup()
                .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlAddContactoLayout.createSequentialGroup()
                        .addGap(15, 15, 15)
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblNombres)
                            .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lbltxtIdContacto))
                        .addGap(8, 8, 8)
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblApellido)
                            .addComponent(txtApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(11, 11, 11)
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtEmpresa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblEmpresa))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtCel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtFax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblFax, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblDir, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlAddContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtMail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblMail, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlAddContactoLayout.createSequentialGroup()
                        .addGap(111, 111, 111)
                        .addComponent(btnNuevo)
                        .addGap(18, 18, 18)
                        .addComponent(btnGuardar)))
                .addContainerGap(44, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(pnlAddContacto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnCerrar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(15, Short.MAX_VALUE)
                .addComponent(pnlAddContacto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnCerrar)
                .addContainerGap())
        );

        getAccessibleContext().setAccessibleParent(this);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnCerrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCerrarActionPerformed
        this.dispose();
    }//GEN-LAST:event_btnCerrarActionPerformed
    
    private void btnNuevoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNuevoActionPerformed
        if (btnNuevo.getText().trim().equalsIgnoreCase("Nuevo")) {
            renovarCampos();
        } else if (btnNuevo.getText().trim().equalsIgnoreCase("Cancelar")) {
            iFrmAgenda frmAgenda = new iFrmAgenda(iFrmAgenda.USUARIO_GENERAL);
            frmPrincipal.dskpPrincipal.add(frmAgenda);
            OperacionesVarias.centrar(frmAgenda);
            dispose();
        }
    }//GEN-LAST:event_btnNuevoActionPerformed
    
    private void btnGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarActionPerformed
        
        try {
            if (btnGuardar.getText().trim().equalsIgnoreCase("Guardar".trim())) {
                if (txtNombre.getText().trim().compareTo("") != 0 && txtApellido.getText().trim().compareTo("") != 0) {
                    
                    
                    if (OperacionesBD.guardar(getContacto(new Contacto()))) {
                        
                        JOptionPane.showMessageDialog(null, "Los datos del nuevo contacto se han guardado correctamente ...", "Guardar contacto", JOptionPane.INFORMATION_MESSAGE);
                        iFrmAgenda frmAgenda = new iFrmAgenda(tipoUsuario);
                        frmPrincipal.dskpPrincipal.add(frmAgenda);
                        OperacionesVarias.centrar(frmAgenda);
                        dispose();
                    } else {
                        
                        JOptionPane.showMessageDialog(null, "Los datos del nuevo contacto no se han podido guardar ...", "Guardar contacto", JOptionPane.ERROR_MESSAGE);
                    }
                } else {
                    JOptionPane.showMessageDialog(null, "Debe ingresar como mínimo el nombre y apellido del nuevo contacto ...", "Guardar contacto", JOptionPane.WARNING_MESSAGE);
                }//insert

            } else if (btnGuardar.getText().trim().equalsIgnoreCase("Actualizar".trim())) {
                
                
                if (JOptionPane.showConfirmDialog(this, "Se actualizaran los datos del contacto seleccionado \n Si esta de acuerdo presione el boton Aceptar", "Actualizar contacto", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE) == 0) {
                    
                    if (OperacionesBD.modificar(getContacto(mdfContacto))) {
                        
                        renovarCampos();
                        JOptionPane.showMessageDialog(this, "Contacto actualizado correctamente ...", "Actualizar contacto", JOptionPane.INFORMATION_MESSAGE);
                        iFrmAgenda frmAgenda = new iFrmAgenda(tipoUsuario);
                        frmPrincipal.dskpPrincipal.add(frmAgenda);
                        OperacionesVarias.centrar(frmAgenda);
                        dispose();
                    } else {
                        JOptionPane.showMessageDialog(this, "El contacto no ha podido ser actualizado ...", "Actualizar contacto", JOptionPane.ERROR_MESSAGE);
                    }
                }
                
                
            } else {
                System.out.println("no hace nada");
            }
            
        } catch (Exception ex) {
            ex.getMessage();
        }
    }//GEN-LAST:event_btnGuardarActionPerformed
    
    private void txtApellidoKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtApellidoKeyTyped
        OperacionesVarias.ingresoSoloLetras(evt);
    }//GEN-LAST:event_txtApellidoKeyTyped
    
    private void txtNombreKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtNombreKeyTyped
        OperacionesVarias.ingresoSoloLetras(evt);
    }//GEN-LAST:event_txtNombreKeyTyped
    
    private void txtMailFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_txtMailFocusLost
        if (!txtMail.getText().isEmpty()) {
            if (!OperacionesVarias.isEmail(txtMail.getText())) {
                JOptionPane.showMessageDialog(this, "Email incorrecto ...", "Validacion - Email", JOptionPane.WARNING_MESSAGE);
                txtMail.setSelectionStart(0);
                txtMail.setSelectionEnd(txtMail.getText().length());
                txtDireccion.transferFocus();
            }
        }
    }//GEN-LAST:event_txtMailFocusLost
    
    private void txtFaxKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtFaxKeyTyped
        OperacionesVarias.ingresoSoloNumeros(evt);
    }//GEN-LAST:event_txtFaxKeyTyped
    
    private void txtCelKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtCelKeyTyped
        OperacionesVarias.ingresoSoloNumeros(evt);
    }//GEN-LAST:event_txtCelKeyTyped
    
    private void txtTelefonoKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtTelefonoKeyTyped
        OperacionesVarias.ingresoSoloNumeros(evt);
    }//GEN-LAST:event_txtTelefonoKeyTyped
    
    private void txtEmpresaKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtEmpresaKeyTyped
        OperacionesVarias.ingresoSoloLetras(evt);
    }//GEN-LAST:event_txtEmpresaKeyTyped
    
    private void renovarCampos() {
        txtNombre.setText("");
        txtApellido.setText("");
        txtEmpresa.setText("");
        txtTelefono.setText("");
        txtFax.setText("");
        txtCel.setText("");
        txtDireccion.setText("");
        txtMail.setText("");//k
        lbltxtIdContacto.setText("");//kk
        btnNuevo.setText("Nuevo");//k
        btnGuardar.setText("Guardar");//k
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCerrar;
    private javax.swing.JButton btnGuardar;
    private javax.swing.JButton btnNuevo;
    private javax.swing.JLabel lblApellido;
    private javax.swing.JLabel lblCel;
    private javax.swing.JLabel lblDir;
    private javax.swing.JLabel lblEmpresa;
    private javax.swing.JLabel lblFax;
    private javax.swing.JLabel lblMail;
    private javax.swing.JLabel lblNombres;
    private javax.swing.JLabel lblTelefono;
    private javax.swing.JLabel lbltxtIdContacto;
    private javax.swing.JPanel pnlAddContacto;
    private javax.swing.JTextField txtApellido;
    private javax.swing.JTextField txtCel;
    private javax.swing.JTextField txtDireccion;
    private javax.swing.JTextField txtEmpresa;
    private javax.swing.JTextField txtFax;
    private javax.swing.JTextField txtMail;
    private javax.swing.JTextField txtNombre;
    private javax.swing.JTextField txtTelefono;
    // End of variables declaration//GEN-END:variables
}
